package com.thh.datamonitor.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.thh.common.core.model.entity.SysUser;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.thh.common.annotation.Excel;
import com.thh.common.core.model.BaseEntity;

/**
 * 用户和数据库绑定对象 tmd_user_database
 * 
 * @author thh
 * @date 2022-06-23
 */
@Data
@TableName("tmd_user_database")
public class TmdUserDatabase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userDatabaseId;

    /** 用户ID */
    private String userId;

    /** 库ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long databaseId;

    /** 别名 */
    @Excel(name = "别名")
    private String alias;

    /** 用户状态 */
    private String status;
}
